package com.wm.bean;

import java.io.*;
import java.util.Date;

public class ResMenu implements Serializable {
	private static final long serialVersionUID = 3938860373226088110L;
	
	private long id;					//主键ID
	private long resId;			    	//饭店餐馆表的ID
	private String menuName;			//菜名称
	private String menuInitials;		//菜名首字母
	private String menuAnglic;			//菜名的简拼
	private String menuPhonetic;		//菜名的全拼
	private int price;					//价格
	private int discount;				//折扣价
	private int isPromotion;			//是否促销0不促销1促销
	private long typeId;				//菜单类别表ID
	private int buyNum;					//购买人数
	private int score;					//评分
	private int scorePeople;			//评分人数
	private int isFacia;				//是否招牌0不是1是
	private int isShow;					//是否显示0不显示1显示
	private int orderNum;				//排序字段
	private Date orderTime;				//排序时间
	private Date addTime;				//添加时间
	private int isImg;					//是否有图0无1有

	private String menuMemo;			//备注
	private String priceShow;			//价格前台显示用
	private String discountShow;		//折扣价前台显示用
	
	private String formatPrice;			//格式化后的价格

	public String getPriceShow() {
		return priceShow;
	}
	public void setPriceShow(String priceShow) {
		this.priceShow = priceShow;
	}
	public String getDiscountShow() {
		return discountShow;
	}
	public void setDiscountShow(String discountShow) {
		this.discountShow = discountShow;
	}
	public int getIsImg() {
		return isImg;
	}
	public void setIsImg(int isImg) {
		this.isImg = isImg;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getResId() {
		return resId;
	}
	public void setResId(long resId) {
		this.resId = resId;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public String getMenuInitials() {
		return menuInitials;
	}
	public void setMenuInitials(String menuInitials) {
		this.menuInitials = menuInitials;
	}
	public String getMenuAnglic() {
		return menuAnglic;
	}
	public void setMenuAnglic(String menuAnglic) {
		this.menuAnglic = menuAnglic;
	}
	public String getMenuPhonetic() {
		return menuPhonetic;
	}
	public void setMenuPhonetic(String menuPhonetic) {
		this.menuPhonetic = menuPhonetic;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getDiscount() {
		return discount;
	}
	public void setDiscount(int discount) {
		this.discount = discount;
	}
	public int getIsPromotion() {
		return isPromotion;
	}
	public void setIsPromotion(int isPromotion) {
		this.isPromotion = isPromotion;
	}
	public long getTypeId() {
		return typeId;
	}
	public void setTypeId(long typeId) {
		this.typeId = typeId;
	}
	public int getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(int buyNum) {
		this.buyNum = buyNum;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public int getScorePeople() {
		return scorePeople;
	}
	public void setScorePeople(int scorePeople) {
		this.scorePeople = scorePeople;
	}
	public int getIsFacia() {
		return isFacia;
	}
	public void setIsFacia(int isFacia) {
		this.isFacia = isFacia;
	}
	public int getIsShow() {
		return isShow;
	}
	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}
	public int getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public String getMenuMemo() {
		return menuMemo;
	}
	public void setMenuMemo(String menuMemo) {
		this.menuMemo = menuMemo;
	}
	
	public String getFormatPrice() {
		String s = String.valueOf(this.price);
		String jiao = s.substring(s.length()-1);	//取最后1位
		String yuan = s.substring(0, s.length()-1);	//取前几位
		formatPrice = yuan + "." + jiao;
		return formatPrice;
	}
	public void setFormatPrice(String formatPrice) {
		this.formatPrice = formatPrice;
	}
	
}
